<!DOCTYPE html>
<html lang="zh-cn">
<head>
<include file="Widget/head" />
<link href="__CSS__/Home/global.css" rel="stylesheet" type="text/css">
<link href="__CSS__/Home/task.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="__CSS__/Home/defaut.css">
<link rel="stylesheet" type="text/css" href="__CSS__/Home/distance.css">
<link rel="stylesheet" type="text/css" href="__CSS__/Home/button.css">
<link rel="stylesheet" type="text/css" href="__CSS__/Home/font.css">
<script src="__JS__/home/jquery-1.4.1.min.js"></script>
<link href="__CSS__/Home/divalert.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="__JS__/Home/tipswindown.js"></script>
<script type="text/javascript" src="__JS__/Home/appdiv.js"></script>
<style type="text/css">
	/*#content{ width:500px; height:170px; margin:100px auto;}*/
	#imgbox-loading{
		position: absolute;
		top: 0;
		left: 0;
		cursor: pointer;
		display: none;
		z-index: 90;
	}
	#imgbox-loading div
	{
		background: #FFF;
		width: 100%;
		height: 100%;
	}
	#imgbox-overlay{
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: #000;
		display: none;
		z-index: 80;
	}
	.imgbox-wrap{
		position: absolute;
		top: 0;
		left: 0;
		background: #FFF;
		display: none;
		z-index: 90;
	}
	.imgbox-img{
		padding: 0;
		margin: 0;
		border: none;
		width: 100%;
		height: 100%;
		vertical-align: top;
	}
	.imgbox-title{
		padding-top: 10px;
		font-size: 11px;
		text-align: center;
		font-family: Arial;
		color: #333;
		display: none;
	}
	.imgbox-bg-wrap{
		position: absolute;
		padding: 0;
		margin: 0;
		display: none;
	}
	.imgbox-bg{
		position: absolute;
		width: 20px;
		height: 20px;
	}
	.delimg{
		color: #666;
		cursor: pointer;
	}
	.btnoo{ height:24px !important; letter-spacing:4px !important; font-size:14px !important;}
</style>
<script>
	function upload(){
		$("#cdform").submit();
	}
</script>
</head>
<body>
{:W('Page/menu')}

{:W('Page/shuainfo')}

<div class="contt">    
    <div class="halltop">
        <div class="hallr" style="width:100%;">
            <ul style="width:520px; float:left;">
                <li><a href="{:U('Shua/lists')}" class="lsitico">任务大厅</a></li>
                <li><a href="{:U('Shua/mylists?flag=mylists')}" class="lsitico3">我的任务</a></li>
                <li><a href="{:U('Shua/userinfo')}" class="lsitico3">个人中心</a></li>
	            <li><a href="{:U('Index/tuijian')}" class="lsitico3">推荐</a></li>
            </ul>
            <div style="width:110px; float:right; padding-top: 15px;">
	        	<span class="bbtn dis_l50" style="margin-left:auto;"><a href="{:U('Shua/lists')}" title="刷新任务">刷新任务</a></span>&nbsp;
	        </div>
        </div>
        <div class="clr"></div>
	</div>
    
    <div class="cttr3">
        <div class="div_details">
            <div class="div_ttl_l">
                <p class="fdettl">{$info['title']}【{$info['yongjin']}元】</p>
                <p class="fdefuttl">
                    <span class="s999">任务类型：</span>
                    <span>{$info['renwu_type']}</span>
                    &nbsp;&nbsp; <span class="s999">发布时间：</span>
                    {$info['time_type']}
                    &nbsp;&nbsp; <span class="s999">信息编号：HFZZ{$info['id']}</span>
                    &nbsp;&nbsp; <span class="s999">商家名称：</span>{$info['shangname']}
                </p>
            </div>
            <div class="div_ttl_r">
            <!-- <if condition="$yj neq 1"> -->	
                <a href="javascript:;" id="jieshou" class="j_show_taobao_user gwyy_btn gwyy_btn_cyan">立即接手</a>
            <!-- </if> -->
            </div>
            <div class="clr xbtm"></div>
            <div class="ddlxtip">
                <h2 style=" font-size:20px; font-weight:bold;">
                <!-- <if condition="$info['cate'] eq 1"> -->
                {$Think.config.DIAN_FU}
                <!-- <elseif condition="$info['cate'] eq 2"/> -->
                {$Think.config.LI_FAN}
                <!-- <elseif condition="$info['cate'] eq 3"/> -->
                {$Think.config.YUAN_CHENG}
                <!-- <elseif condition="$info['cate'] eq 4"/> -->
                {$Think.config.LIU_LAN}
                <!-- </if> -->
                </h2>
            </div>
            <div class="rwxq_l">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tbody>
                    <!-- <if condition="$info['jid']"> -->
                    <tr><td width="31%" class="s999">卖家电话：</td><td width="69%">{$info['mobile']}</td></tr>
                    <!-- </if> -->
                    <tr><td width="31%" class="s999">商品价格：</td><td width="69%">{$info['price']}</td></tr>
                    <tr><td class="s999">货比数量：</td><td>{$info['huobi']}家</td></tr>
                    <tr><td class="s999">副宝贝数：</td><td>{$info['fnum']}个</td></tr>
                    <tr><td class="s999">双收藏：</td><td><span class="c-green"><!-- <if condition="$info['shoucang'] eq 1"> -->有<!-- <else/> -->无<!-- </if> --></span></td></tr>
                </tbody></table>
            </div>
            <div class="rwxq_r">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tbody>
                    <!-- <if condition="$info['jid']"> -->
                    <tr><td width="31%" class="s999">卖家qq号：</td><td width="69%">{$info['qq']}</td></tr>
                    <!-- </if> -->
                    <tr>
                        <td width="28%" class="s999">任务状态：</td>
                        <td width="72%">{$info['zhuangtai']}</td>
                    </tr>
                    
                    <tr><td class="s999">需要刷手信誉</td><td><span class="c-green">
                        <!-- <if condition="$info['xinyong'] eq 0"> -->白号
                        <!-- <elseif condition="$info['xinyong'] eq 1"/> -->1心
                        <!-- <elseif condition="$info['xinyong'] eq 2"/> -->2心
                        <!-- <elseif condition="$info['xinyong'] eq 3"/> -->3心
                        <!-- <elseif condition="$info['xinyong'] eq 4"/> -->4心
                        <!-- <elseif condition="$info['xinyong'] eq 5"/> -->5心
                        <!-- <elseif condition="$info['xinyong'] eq 6"/> -->1钻以上
                        <!-- </if> -->
                    </span></td></tr>
                    <tr><td class="s999">主宝贝浏览时间：</td><td>{$info['zliulan']}分钟</td>
                    </tr>
                    <tr>
                        <td class="s999">付款连接：</td><td>1连接</td>
                    </tr>
                </tbody></table>
            </div>
            <div class="clr xbtm"></div>
            <div class="rwxq_l">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tbody><tr>
                        <td class="s999">购买前假聊：</td>
                        <td><span class="c-red"><!-- <if condition="$info['liao'] eq 1"> -->有<!-- <elseif condition="$info['liao'] eq 3" /> -->有<!-- <else/> -->无<!-- </if> --></span></td>
                    </tr>
                    <tr>
                        <td width="40%" class="s999">五星截图：</td>
                        <td width="60%"><span class="c-red"><!-- <if condition="$info['xing'] eq 1"> -->有<!-- <else/> -->无<!-- </if> --></span></td>
                    </tr>
                </tbody></table>
            </div>
            <div class="rwxq_r">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tbody><tr>
                        <td class="s999"> 收货后假聊：</td>
                        <td><span class="c-red">
                        	<!-- <if condition="$info['liao'] eq 2"> -->有<!-- <elseif condition="$info['liao'] eq 3" /> -->有<!-- <else/> -->无<!-- </if> -->
                        </span></td>
                    </tr>
                    <tr>
                        <td width="28%" class="s999">规定评论内容：</td>
                        <td width="72%" style="line-height: 25px;"><!-- <if condition="$info['pingcon']"> -->{$info['pingcon']}<!-- <else/> -->无<!-- </if> --></td>
                    </tr>
                </tbody></table>
            </div>
            <div class="clr"></div>
            <div class="rwyqdiv"><span class="s999">任务要求:</span>{$info['content']}</div>
        </div>
    </div>
<!-- ------------------------判断当前登录用户是否已经接单---------------------------- -->
<!-- <if condition="$yj eq 1"> -->	
	<!-- ------判断商家是否同意放单---- -->
	<!-- <if condition="$info['status'] gt 2"> -->
	<div class="upimgdiv">
		<div class="rwxqnr2">
	    	<div class="zbaobei2"> 
	        	<img src="{$info['picurl']}" width="261px" height="400px">
	            <div class="sptpyanz">
	            <form action="{:U('Shua/yanzheng')}" method="post">
	                <p><span class="s999">商品一关键词：</span><span class="nhct">{$info['keywords']}</span></p>
	                <p><span class="s999">商品一验证地址：</span>
	                   <input id="spyanurldizhi" name="url" type="text" size="60" >
	                   <input type="hidden" name="id" value="{$info['id']}">
	                   <input type="submit" class="btnoo" id="yanzheng" name="yanzheng" value="验证"></p>
	                <p class="red1 nhct" id="msgtishi">请输入找到的淘宝商品一网址~</p>
	            </form>
	            </div>
	            <div class="clr"></div>
	        </div>
        	<div class="clr"></div>    
        </div>
    </div>
    <!-- </if> -->
    <!-- ------判断商家是否审核通过------- -->
    <!-- <if condition="$info['status'] eq 2"> -->
    <div class="upimgdiv">
        <div class="task-list-contents rwxqnr2">   
            <div class="upct1">
                <p class="upp">审核图 IP地址 <span style="float:right;" onclick="upload();">上传</span></p>
                <form id="cdform" action="{:U('Shua/up')}" method="post" enctype="multipart/form-data">
                <input type="hidden" name="id" value="{$info['id']}">
                <div id="content">
                    <div class="input-file">
                        <span class="text">点击选择</span>
                        <input id="ipimg" name="ipimg" type="file" style="width: 150px;" class="file">
                    </div>
                    <span id="s_Zbb1ding">
                    	<a class="imgbox1" href="#" target="_blank"><img id="ip_img" src="{$info['ipimg']}" onerror="this.src='__IMG__/noimg.jpg';" width="240px" height="136px"></a>
                    </span>
                    <p>IP截图<span id="fs_Zbb1ding"></span></p>
                </div>
                
                <div>
                    <div class="input-file">
                        <span class="text">点击选择</span>
                        <input id="qingchuimg" name="qingchuimg" type="file" style="width: 150px;" class="file">
                    </div>
                    <span id="s_Zbb1zhong">
                    	<a class="imgbox1" href="#" target="_blank"><img id="qingchu_img" src="{$info['qingchuimg']}" onerror="this.src='__IMG__/noimg.jpg';" width="240px" height="136px"></a>
                    </span>
                    <p>清除缓存<span id="fs_Zbb1zhong"></span></p>
                </div>
                
                <div>
                    <div class="input-file">
                        <span class="text">点击选择</span>
                        <input id="goumaiimg" name="goumaiimg" type="file" style="width: 150px;" class="file">
                    </div>
                    <span id="s_Zbb1di">
                    	<a class="imgbox1" href="#" target="_blank"><img id="goumai_img" src="{$info['goumaiimg']}" onerror="this.src='__IMG__/noimg.jpg';" width="240px" height="136px"></a>
                    </span>
                    <p>已购买商品截图<span id="fs_Zbb1di"></span></p>
                </div>
                
                <div>
                    <div class="input-file">
                        <span class="text">点击选择</span>
                        <input id="pinglunimg" name="pinglunimg" type="file" style="width: 150px;" class="file">
                    </div>
                    <span id="s_Zbb1ping">
                    	<a class="imgbox1" href="#" target="_blank">
                        	<img id="pinglun_img" src="{$info['pinglunimg']}" onerror="this.src='__IMG__/noimg.jpg';';" width="240px" height="136px">
                        </a>
                    </span>
                    <p>评论管理截图<span id="fs_Zbb1ping"></span></p>
                </div>               
            	</form>
            </div>
        </div>
    </div>
    <!-- <elseif condition="$info['status'] eq 3"/> -->
    <div class="upimgdiv">
        <div class="task-list-contents rwxqnr2">   
            <div class="upct1">
                <p class="upp">任务图 IP地址<span style="float:right;" onclick="upload();">上传</span></p>
                <form id="cdform" action="{:U('Shua/up')}" method="post" enctype="multipart/form-data">
                <input type="hidden" name="id" value="{$info['id']}">
                <div id="content">
                    <div class="input-file">
                        <span class="text">点击选择</span>
                        <input id="ipimg" name="ipimg" type="file" style="width: 150px;" class="file">
                    </div>
                    <span id="s_Zbb1ding">
                    	<a class="imgbox1" href="#" target="_blank"><img id="ip_img" src="{$info['ipimg']}" onerror="this.src='__IMG__/noimg.jpg';" width="240px" height="136px"></a>
                    </span>
                    <p>IP截图<span id="fs_Zbb1ding"></span></p>
                </div>
                
                <div>
                    <div class="input-file">
                        <span class="text">点击选择</span>
                        <input id="qingchuimg" name="qingchuimg" type="file" style="width: 150px;" class="file">
                    </div>
                    <span id="s_Zbb1zhong">
                    	<a class="imgbox1" href="#" target="_blank"><img id="qingchu_img" src="{$info['qingchuimg']}" onerror="this.src='__IMG__/noimg.jpg';" width="240px" height="136px"></a>
                    </span>
                    <p>清除缓存<span id="fs_Zbb1zhong"></span></p>
                </div>
                
                <div>
                    <div class="input-file">
                        <span class="text">点击选择</span>
                        <input id="goumaiimg" name="goumaiimg" type="file" style="width: 150px;" class="file">
                    </div>
                    <span id="s_Zbb1di">
                    	<a class="imgbox1" href="#" target="_blank"><img id="goumai_img" src="{$info['goumaiimg']}" onerror="this.src='__IMG__/noimg.jpg';" width="240px" height="136px"></a>
                    </span>
                    <p>已购买商品截图<span id="fs_Zbb1di"></span></p>
                </div>
                
                <div>
                    <div class="input-file">
                        <span class="text">点击选择</span>
                        <input id="pinglunimg" name="pinglunimg" type="file" style="width: 150px;" class="file">
                    </div>
                    <span id="s_Zbb1ping">
                    	<a class="imgbox1" href="#" target="_blank">
                        	<img id="pinglun_img" src="{$info['pinglunimg']}" onerror="this.src='__IMG__/noimg.jpg';';" width="240px" height="136px">
                        </a>
                    </span>
                    <p>评论管理截图<span id="fs_Zbb1ping"></span></p>
                </div>               
            	</form>
            </div>
        </div>
    </div>
    <!-- </if> -->
<!-- </if> -->      
<!-- ------------------------判断当前登录用户是否已经接单---------------------------- -->
</div>

<!-- 选择淘宝号 -->
<div id="simTestContent" class="simScrollCont" style="display: none">
	<p><a href="{:U('Shua/taobao')}" target="_blank">【添加新淘宝账号】</a></p>
    	<form id="frmjiedan" action="{:U('Shua/jiedan')}" method="post" onsubmit="return checkFrmjiedan();">
      	<div class="mainlist">     
        	<br>
        	<!-- <foreach name="tblist" item="tb"> -->
	          <label>
	              <input name="taouser" value="{$tb['taobao']}" type="radio">
	              {$tb['taobao']}
	          </label>
	        <!-- </foreach> -->            
      	</div>
      	<div class="btnbox">
      		<input type="hidden" value="{$info['id']}" name="id"> 
          	<input type="submit" id="confirmTerm" value="确定接手" class="confirmBtn">
      	</div>
     </form>
</div>
<!-- 选择淘宝号 -->

<script>
//选择淘宝号
$("#jieshou").click(function () {
    showTipsWindown("选择淘宝账号", 'simTestContent', 600, 255);
});
//上传图片预览
$("#ipimg").change(function(){
	var objUrl = getObjectURL(this.files[0]) ;
	console.log("objUrl = "+objUrl) ;
	if (objUrl) {
		$("#ip_img").attr("src", objUrl) ;
	}
}) ;
$("#qingchuimg").change(function(){
	var objUrl = getObjectURL(this.files[0]) ;
	console.log("objUrl = "+objUrl) ;
	if (objUrl) {
		$("#qingchu_img").attr("src", objUrl) ;
	}
}) ;
$("#goumaiimg").change(function(){
	var objUrl = getObjectURL(this.files[0]) ;
	console.log("objUrl = "+objUrl) ;
	if (objUrl) {
		$("#goumai_img").attr("src", objUrl) ;
	}
}) ;
$("#pinglunimg").change(function(){
	var objUrl = getObjectURL(this.files[0]) ;
	console.log("objUrl = "+objUrl) ;
	if (objUrl) {
		$("#pinglun_img").attr("src", objUrl) ;
	}
}) ;
//建立一個可存取到該file的url
function getObjectURL(file) {
	var url = null ; 
	if (window.createObjectURL!=undefined) { // basic
		url = window.createObjectURL(file) ;
	} else if (window.URL!=undefined) { // mozilla(firefox)
		url = window.URL.createObjectURL(file) ;
	} else if (window.webkitURL!=undefined) { // webkit or chrome
		url = window.webkitURL.createObjectURL(file) ;
	}
	return url ;
}
</script>
{:W('Page/foot')}
</body>
</html>